<?php 
	//----------------INPUT ELEMENT----------------
	$user_name 		= $this->formText('username', $this->Value['username'], array('class'=>'txtmedium'));
	if(!empty($this->Value['avatar'])){
		$urlAvatar 	= FILES_URL . '/users/img100x100/' . $this->Value['avatar'];
		$imgAvatar 	= '<br> <img src="' . $urlAvatar . '"> <br>' . $this->Value['avatar'];
	}else{
		$avatar 	= '';
	}
	$current_avatar = $this->formHidden('current_avatar', $this->Value['avatar']);
	$avatar 		= $this->formFile('avatar') . $imgAvatar . $current_avatar;
	
	$password 		= $this->formPassword('password', '', array('class'=>'txtsort'));
	$email	 		= $this->formText('email', $this->Value['email'], array('class'=>'txtmedium'));
	$full_name 		= $this->formText('fullname', $this->Value['fullname'], array('class'=>'txtmedium'));
	$birthday 		= $this->formText('birthday', $this->Value['birthday'], array('class'=>'txtsort'));
	
	$options 		= array('Inactive', 'Active');
	$status 		= $this->formRadio('status', $this->Value['status'],null,$options, '');
	
	$options 		= $this->sblGroup;
	$sblGroup 		= $this->formSelect('group_id', $this->Value['group_id'],array('style' => "min-width:200px"), $options);
	
	$sign 			= $this->cmsReplaceString($this->Value['sign']);
	$sign = $this->cmsEditor('sign', $sign, array('toolbar'=>'Default', 'language'=>'en'));
	
	$arrInput = array(
					 	array('label'=>'User name: ', 'input' => $user_name),
						array('label'=>'Avatar: ', 'input' => $avatar, 'style'=>'margin-left: 175px;'),
						array('label'=>'Password: ', 'input' => $password),
						array('label'=>'Email: ', 'input' => $email),
						array('label'=>'Group name: ', 'input' => $sblGroup),
						array('label'=>'Full name: ', 'input' => $full_name),
						array('label'=>'Birthday: ', 'input' => $birthday),
						array('label'=>'Status: ', 'input' => $status),
						array('label'=>'Sign: ', 'input' => $sign, 'style'=>'margin-left: 175px;'),
						);
	
	//------------------MESSAGE ERROR-----------------------
		if(count($this->messageError)>0){
			$errors = $this->formErrors($this->messageError, array('id'=>'errors'));
		}
?>
<div id="content-box">
            <div class="border">
                <div class="padding">

                    <form name="appForm" method="post" action="" enctype="multipart/form-data">
                        <?php echo $this->render('user/toolbar/index.php');?>
						<div class="clr"></div>
						<?php echo $this->render('user/sublink/index.php');?>
						<?php echo $errors;?>
                        <!-- BEGIN: CONTENT -->
                        <div id="element-box">
                            <div class="t">
                                <div class="t">
                                    <div class="t"></div>
                                </div>
                            </div>
                            <div class="m">
                                <!-- BEGIN: ELEMENT BOX -->
                                <div id="adminfieldset">
                                    <div class="adminheader">Detail</div>
                                    <?php echo $this->partialLoop('row.php', $arrInput);?>
                                </div>
                                <!-- END: ELEMENT BOX -->	
                              	<div class="clr"></div>
                            </div>
                            <div class="b">
                                <div class="b">
                                    <div class="b"></div>
                                </div>
                            </div>
                        </div>
                        <!-- END: 	CONTENT -->
                    </form>


                    <div class="clr"></div>
                </div>
                <div class="clr"></div>
            </div>
        </div>